Show:

ia.InteractionGroup Class

Module: ia

Organizes interactions between different components.

Constructor

ia.InteractionGroup

()

Methods

_dispatchInteractionEvent

(
  • eventType
)
private

Dispatches an interaction event.

Parameters:

  • eventType String

    An ia.ItemEvent type.

_itemEventHandler

(
  • event
)
private

Handles item events.

Parameters:

  • event ia.ItemEvent

    An ia.ItemEvent dispatched by a component.

_onLegendClassEvent

(
  • event
  • item
)
private

Updates the legend class components.

Parameters:

  • event ia.ItemEvent

    An ia.ItemEvent dispatched by a component.

  • item Object

    An item.

_updateComponents

(
  • event
  • item
)
private

Updates the components

Parameters:

  • event ia.ItemEvent

    An ia.ItemEvent dispatched by a component.

  • item Object

    An item.

_updateLegendClassComponents

(
  • event
  • item
)
private

Updates the legend class components

Parameters:

  • event ia.ItemEvent

    An ia.ItemEvent dispatched by a component.

  • item Object

    An item.

addComponent

(
  • component
)

Adds a component to the group.

Parameters:

  • component Object

    The component to add.

clearHighlight

()

Clears the highlight.

clearSelection

(
  • id
)

Selects the id.

Parameters:

  • id String

    The id.

clearSelection

()

Clears the selection.

getComponents

() Object

Gets the list of components.

Returns:

Object: An array of components.

getHighlight

() String

Returns the highlighted id.

Returns:

String: The id.

getSelection

() String

Returns the selected ids as an array.

Returns:

String: The list of ids.

removeComponent

(
  • component
)

Removes a component from the group.

Parameters:

  • component Object

    The component to remove.

setHighlight

(
  • id
)

Highlight the id.

Parameters:

  • id String

    The id.

setSelection

(
  • s
)

Sets the selected ids as an array.

Parameters:

  • s String

    An array of ids.

unselect

(
  • id
)

Unselects the id.

Parameters:

  • id String

    The id.

Properties

selectionMode

String

Selection mode.

Default: "multiple"